#!/bin/sh

KERNEL_IMG="/etc/kernel-img.conf"
#KERNEL_IMG="kernel-img.conf"

cat >$KERNEL_IMG <<EOF
do_symlinks = yes
relative_links = yes
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
#postinst_hook = update-grub
#postrm_hook = update-grub
do_bookloader = no
EOF

LC_ALL="C"
export LC_ALL

apt-get update
apt-get install -y --force-yes linux-image-2.6-686 grub
